home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 202_01 / menu.doc < prev    next >
Text File  |  1980-01-01  |  2KB  |  71 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.           THE FOLLOWING IS A LIST OF VALID COMMANDS FOR THIS EDITOR.
  9.              INSTRUCTION
  10.           m       move
  11.           tl      turnleft
  12.           pi      pickbeeper
  13.           pu      putbeeper
  14.           to      turnoff
  15.           b       BEGIN
  16.           bx      BEGINNING-OF-EXECUTION
  17.           nd      END
  18.           ndc     end construct
  19.           ndx     END-OF-EXECUTION
  20.           if      IF
  21.           el      ELSE
  22.           it      ITERATE
  23.           wh      WHILE
  24.           df      DEFINE-NEW-INSTRUCTION
  25.  
  26.              EDIT COMMANDS
  27.           n       move pointer to next instruction
  28.           nc      move pointer to next construct
  29.           n-      move pointer to previous instruction
  30.           n--     move pointer back 10 lines
  31.           d       delete current line
  32.           c       print current line
  33.           p       print the next 20 lines
  34.           i       insert a new line before the current one
  35.           t       move pointer to the first line
  36.           l       list the rest of the program
  37.           s       save the program
  38.           mn      print an updated menu
  39.           q       quit the edit program
  40.  
  41.              TESTS
  42.           n       facing-north
  43.           nn      not-facing-north
  44.           s       facing-south
  45.           ns      not-facing-south
  46.           e       facing-east
  47.           ne      not-facing-east
  48.           w       facing-west
  49.           nw      not-facing-west
  50.           c       next-to-a-beeper   (beeper on corner)
  51.           nc      not-next-to-a-beeper
  52.           b       any-beepers-in-beeper-bag
  53.           nb      no-beepers-in-beeper-bag
  54.           f       front-is-clear
  55.           nf      front-is-blocked
  56.           l       left-is-clear
  57.           nl      left-is-blocked
  58.           r       right-is-clear
  59.           nr      right-is-blocked
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. line
  68.           p       print the next 20 lines
  69.           i       insert a new line before the current one
  70.           t       move pointer to the first line
  71.           l